<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - id:000977,sync:fuzzer2,src:001052.lcov_info_final - test/gmock-1.7.0/include/gmock/gmock-generated-nice-strict.h</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">test/gmock-1.7.0/include/gmock</a> - gmock-generated-nice-strict.h<span style="font-size: 80%;"> (source / <a href="gmock-generated-nice-strict.h.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">id:000977,sync:fuzzer2,src:001052.lcov_info_final</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">16</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2016-03-13 10:42:47</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">6</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : // This file was GENERATED by command:</a>
<span class="lineNum">       2 </span>            : //     pump.py gmock-generated-nice-strict.h.pump
<span class="lineNum">       3 </span>            : // DO NOT EDIT BY HAND!!!
<span class="lineNum">       4 </span>            : 
<span class="lineNum">       5 </span>            : // Copyright 2008, Google Inc.
<span class="lineNum">       6 </span>            : // All rights reserved.
<span class="lineNum">       7 </span>            : //
<span class="lineNum">       8 </span>            : // Redistribution and use in source and binary forms, with or without
<span class="lineNum">       9 </span>            : // modification, are permitted provided that the following conditions are
<span class="lineNum">      10 </span>            : // met:
<span class="lineNum">      11 </span>            : //
<span class="lineNum">      12 </span>            : //     * Redistributions of source code must retain the above copyright
<span class="lineNum">      13 </span>            : // notice, this list of conditions and the following disclaimer.
<span class="lineNum">      14 </span>            : //     * Redistributions in binary form must reproduce the above
<span class="lineNum">      15 </span>            : // copyright notice, this list of conditions and the following disclaimer
<span class="lineNum">      16 </span>            : // in the documentation and/or other materials provided with the
<span class="lineNum">      17 </span>            : // distribution.
<span class="lineNum">      18 </span>            : //     * Neither the name of Google Inc. nor the names of its
<span class="lineNum">      19 </span>            : // contributors may be used to endorse or promote products derived from
<span class="lineNum">      20 </span>            : // this software without specific prior written permission.
<span class="lineNum">      21 </span>            : //
<span class="lineNum">      22 </span>            : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
<span class="lineNum">      23 </span>            : // &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
<span class="lineNum">      24 </span>            : // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
<span class="lineNum">      25 </span>            : // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
<span class="lineNum">      26 </span>            : // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
<span class="lineNum">      27 </span>            : // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
<span class="lineNum">      28 </span>            : // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
<span class="lineNum">      29 </span>            : // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
<span class="lineNum">      30 </span>            : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
<span class="lineNum">      31 </span>            : // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<span class="lineNum">      32 </span>            : // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<span class="lineNum">      33 </span>            : //
<span class="lineNum">      34 </span>            : // Author: wan@google.com (Zhanyong Wan)
<span class="lineNum">      35 </span>            : 
<span class="lineNum">      36 </span>            : // Implements class templates NiceMock, NaggyMock, and StrictMock.
<span class="lineNum">      37 </span>            : //
<span class="lineNum">      38 </span>            : // Given a mock class MockFoo that is created using Google Mock,
<span class="lineNum">      39 </span>            : // NiceMock&lt;MockFoo&gt; is a subclass of MockFoo that allows
<span class="lineNum">      40 </span>            : // uninteresting calls (i.e. calls to mock methods that have no
<span class="lineNum">      41 </span>            : // EXPECT_CALL specs), NaggyMock&lt;MockFoo&gt; is a subclass of MockFoo
<span class="lineNum">      42 </span>            : // that prints a warning when an uninteresting call occurs, and
<span class="lineNum">      43 </span>            : // StrictMock&lt;MockFoo&gt; is a subclass of MockFoo that treats all
<span class="lineNum">      44 </span>            : // uninteresting calls as errors.
<span class="lineNum">      45 </span>            : //
<span class="lineNum">      46 </span>            : // Currently a mock is naggy by default, so MockFoo and
<span class="lineNum">      47 </span>            : // NaggyMock&lt;MockFoo&gt; behave like the same.  However, we will soon
<span class="lineNum">      48 </span>            : // switch the default behavior of mocks to be nice, as that in general
<span class="lineNum">      49 </span>            : // leads to more maintainable tests.  When that happens, MockFoo will
<span class="lineNum">      50 </span>            : // stop behaving like NaggyMock&lt;MockFoo&gt; and start behaving like
<span class="lineNum">      51 </span>            : // NiceMock&lt;MockFoo&gt;.
<span class="lineNum">      52 </span>            : //
<span class="lineNum">      53 </span>            : // NiceMock, NaggyMock, and StrictMock &quot;inherit&quot; the constructors of
<span class="lineNum">      54 </span>            : // their respective base class, with up-to 10 arguments.  Therefore
<span class="lineNum">      55 </span>            : // you can write NiceMock&lt;MockFoo&gt;(5, &quot;a&quot;) to construct a nice mock
<span class="lineNum">      56 </span>            : // where MockFoo has a constructor that accepts (int, const char*),
<span class="lineNum">      57 </span>            : // for example.
<span class="lineNum">      58 </span>            : //
<span class="lineNum">      59 </span>            : // A known limitation is that NiceMock&lt;MockFoo&gt;, NaggyMock&lt;MockFoo&gt;,
<span class="lineNum">      60 </span>            : // and StrictMock&lt;MockFoo&gt; only works for mock methods defined using
<span class="lineNum">      61 </span>            : // the MOCK_METHOD* family of macros DIRECTLY in the MockFoo class.
<span class="lineNum">      62 </span>            : // If a mock method is defined in a base class of MockFoo, the &quot;nice&quot;
<span class="lineNum">      63 </span>            : // or &quot;strict&quot; modifier may not affect it, depending on the compiler.
<span class="lineNum">      64 </span>            : // In particular, nesting NiceMock, NaggyMock, and StrictMock is NOT
<span class="lineNum">      65 </span>            : // supported.
<span class="lineNum">      66 </span>            : //
<span class="lineNum">      67 </span>            : // Another known limitation is that the constructors of the base mock
<span class="lineNum">      68 </span>            : // cannot have arguments passed by non-const reference, which are
<span class="lineNum">      69 </span>            : // banned by the Google C++ style guide anyway.
<span class="lineNum">      70 </span>            : 
<span class="lineNum">      71 </span>            : #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_
<span class="lineNum">      72 </span>            : #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_
<span class="lineNum">      73 </span>            : 
<span class="lineNum">      74 </span>            : #include &quot;gmock/gmock-spec-builders.h&quot;
<span class="lineNum">      75 </span>            : #include &quot;gmock/internal/gmock-port.h&quot;
<span class="lineNum">      76 </span>            : 
<span class="lineNum">      77 </span>            : namespace testing {
<span class="lineNum">      78 </span>            : 
<span class="lineNum">      79 </span>            : template &lt;class MockClass&gt;
<span class="lineNum">      80 </span>            : class NiceMock : public MockClass {
<span class="lineNum">      81 </span>            :  public:
<a name="82"><span class="lineNum">      82 </span>            :   // We don't factor out the constructor body to a common method, as</a>
<span class="lineNum">      83 </span>            :   // we have to avoid a possible clash with members of MockClass.
<span class="lineNum">      84 </span><span class="lineNoCov">          0 :   NiceMock() {</span>
<span class="lineNum">      85 </span><span class="lineNoCov">          0 :     ::testing::Mock::AllowUninterestingCalls(</span>
<span class="lineNum">      86 </span><span class="lineNoCov">          0 :         internal::ImplicitCast_&lt;MockClass*&gt;(this));</span>
<span class="lineNum">      87 </span><span class="lineNoCov">          0 :   }</span>
<span class="lineNum">      88 </span>            : 
<span class="lineNum">      89 </span>            :   // C++ doesn't (yet) allow inheritance of constructors, so we have
<span class="lineNum">      90 </span>            :   // to define it for each arity.
<span class="lineNum">      91 </span>            :   template &lt;typename A1&gt;
<span class="lineNum">      92 </span>            :   explicit NiceMock(const A1&amp; a1) : MockClass(a1) {
<span class="lineNum">      93 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">      94 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">      95 </span>            :   }
<span class="lineNum">      96 </span>            :   template &lt;typename A1, typename A2&gt;
<span class="lineNum">      97 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2) : MockClass(a1, a2) {
<span class="lineNum">      98 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">      99 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     100 </span>            :   }
<span class="lineNum">     101 </span>            : 
<span class="lineNum">     102 </span>            :   template &lt;typename A1, typename A2, typename A3&gt;
<span class="lineNum">     103 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3) : MockClass(a1, a2, a3) {
<span class="lineNum">     104 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     105 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     106 </span>            :   }
<span class="lineNum">     107 </span>            : 
<span class="lineNum">     108 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4&gt;
<span class="lineNum">     109 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3,
<span class="lineNum">     110 </span>            :       const A4&amp; a4) : MockClass(a1, a2, a3, a4) {
<span class="lineNum">     111 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     112 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     113 </span>            :   }
<span class="lineNum">     114 </span>            : 
<span class="lineNum">     115 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5&gt;
<span class="lineNum">     116 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     117 </span>            :       const A5&amp; a5) : MockClass(a1, a2, a3, a4, a5) {
<span class="lineNum">     118 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     119 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     120 </span>            :   }
<span class="lineNum">     121 </span>            : 
<span class="lineNum">     122 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     123 </span>            :       typename A6&gt;
<span class="lineNum">     124 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     125 </span>            :       const A5&amp; a5, const A6&amp; a6) : MockClass(a1, a2, a3, a4, a5, a6) {
<span class="lineNum">     126 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     127 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     128 </span>            :   }
<span class="lineNum">     129 </span>            : 
<span class="lineNum">     130 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     131 </span>            :       typename A6, typename A7&gt;
<span class="lineNum">     132 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     133 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7) : MockClass(a1, a2, a3, a4, a5,
<span class="lineNum">     134 </span>            :       a6, a7) {
<span class="lineNum">     135 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     136 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     137 </span>            :   }
<span class="lineNum">     138 </span>            : 
<span class="lineNum">     139 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     140 </span>            :       typename A6, typename A7, typename A8&gt;
<span class="lineNum">     141 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     142 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8) : MockClass(a1,
<span class="lineNum">     143 </span>            :       a2, a3, a4, a5, a6, a7, a8) {
<span class="lineNum">     144 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     145 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     146 </span>            :   }
<span class="lineNum">     147 </span>            : 
<span class="lineNum">     148 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     149 </span>            :       typename A6, typename A7, typename A8, typename A9&gt;
<span class="lineNum">     150 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     151 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8,
<span class="lineNum">     152 </span>            :       const A9&amp; a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
<span class="lineNum">     153 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     154 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     155 </span>            :   }
<span class="lineNum">     156 </span>            : 
<span class="lineNum">     157 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     158 </span>            :       typename A6, typename A7, typename A8, typename A9, typename A10&gt;
<span class="lineNum">     159 </span>            :   NiceMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     160 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8, const A9&amp; a9,
<span class="lineNum">     161 </span>            :       const A10&amp; a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
<span class="lineNum">     162 </span>            :     ::testing::Mock::AllowUninterestingCalls(
<span class="lineNum">     163 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<a name="164"><span class="lineNum">     164 </span>            :   }</a>
<span class="lineNum">     165 </span>            : 
<span class="lineNum">     166 </span><span class="lineNoCov">          0 :   virtual ~NiceMock() {</span>
<span class="lineNum">     167 </span><span class="lineNoCov">          0 :     ::testing::Mock::UnregisterCallReaction(</span>
<span class="lineNum">     168 </span><span class="lineNoCov">          0 :         internal::ImplicitCast_&lt;MockClass*&gt;(this));</span>
<span class="lineNum">     169 </span><span class="lineNoCov">          0 :   }</span>
<span class="lineNum">     170 </span>            : 
<span class="lineNum">     171 </span>            :  private:
<span class="lineNum">     172 </span>            :   GTEST_DISALLOW_COPY_AND_ASSIGN_(NiceMock);
<span class="lineNum">     173 </span>            : };
<span class="lineNum">     174 </span>            : 
<span class="lineNum">     175 </span>            : template &lt;class MockClass&gt;
<span class="lineNum">     176 </span>            : class NaggyMock : public MockClass {
<span class="lineNum">     177 </span>            :  public:
<span class="lineNum">     178 </span>            :   // We don't factor out the constructor body to a common method, as
<span class="lineNum">     179 </span>            :   // we have to avoid a possible clash with members of MockClass.
<span class="lineNum">     180 </span>            :   NaggyMock() {
<span class="lineNum">     181 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     182 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     183 </span>            :   }
<span class="lineNum">     184 </span>            : 
<span class="lineNum">     185 </span>            :   // C++ doesn't (yet) allow inheritance of constructors, so we have
<span class="lineNum">     186 </span>            :   // to define it for each arity.
<span class="lineNum">     187 </span>            :   template &lt;typename A1&gt;
<span class="lineNum">     188 </span>            :   explicit NaggyMock(const A1&amp; a1) : MockClass(a1) {
<span class="lineNum">     189 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     190 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     191 </span>            :   }
<span class="lineNum">     192 </span>            :   template &lt;typename A1, typename A2&gt;
<span class="lineNum">     193 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2) : MockClass(a1, a2) {
<span class="lineNum">     194 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     195 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     196 </span>            :   }
<span class="lineNum">     197 </span>            : 
<span class="lineNum">     198 </span>            :   template &lt;typename A1, typename A2, typename A3&gt;
<span class="lineNum">     199 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3) : MockClass(a1, a2, a3) {
<span class="lineNum">     200 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     201 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     202 </span>            :   }
<span class="lineNum">     203 </span>            : 
<span class="lineNum">     204 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4&gt;
<span class="lineNum">     205 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3,
<span class="lineNum">     206 </span>            :       const A4&amp; a4) : MockClass(a1, a2, a3, a4) {
<span class="lineNum">     207 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     208 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     209 </span>            :   }
<span class="lineNum">     210 </span>            : 
<span class="lineNum">     211 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5&gt;
<span class="lineNum">     212 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     213 </span>            :       const A5&amp; a5) : MockClass(a1, a2, a3, a4, a5) {
<span class="lineNum">     214 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     215 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     216 </span>            :   }
<span class="lineNum">     217 </span>            : 
<span class="lineNum">     218 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     219 </span>            :       typename A6&gt;
<span class="lineNum">     220 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     221 </span>            :       const A5&amp; a5, const A6&amp; a6) : MockClass(a1, a2, a3, a4, a5, a6) {
<span class="lineNum">     222 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     223 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     224 </span>            :   }
<span class="lineNum">     225 </span>            : 
<span class="lineNum">     226 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     227 </span>            :       typename A6, typename A7&gt;
<span class="lineNum">     228 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     229 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7) : MockClass(a1, a2, a3, a4, a5,
<span class="lineNum">     230 </span>            :       a6, a7) {
<span class="lineNum">     231 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     232 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     233 </span>            :   }
<span class="lineNum">     234 </span>            : 
<span class="lineNum">     235 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     236 </span>            :       typename A6, typename A7, typename A8&gt;
<span class="lineNum">     237 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     238 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8) : MockClass(a1,
<span class="lineNum">     239 </span>            :       a2, a3, a4, a5, a6, a7, a8) {
<span class="lineNum">     240 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     241 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     242 </span>            :   }
<span class="lineNum">     243 </span>            : 
<span class="lineNum">     244 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     245 </span>            :       typename A6, typename A7, typename A8, typename A9&gt;
<span class="lineNum">     246 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     247 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8,
<span class="lineNum">     248 </span>            :       const A9&amp; a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
<span class="lineNum">     249 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     250 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     251 </span>            :   }
<span class="lineNum">     252 </span>            : 
<span class="lineNum">     253 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     254 </span>            :       typename A6, typename A7, typename A8, typename A9, typename A10&gt;
<span class="lineNum">     255 </span>            :   NaggyMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     256 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8, const A9&amp; a9,
<span class="lineNum">     257 </span>            :       const A10&amp; a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
<span class="lineNum">     258 </span>            :     ::testing::Mock::WarnUninterestingCalls(
<span class="lineNum">     259 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     260 </span>            :   }
<span class="lineNum">     261 </span>            : 
<span class="lineNum">     262 </span>            :   virtual ~NaggyMock() {
<span class="lineNum">     263 </span>            :     ::testing::Mock::UnregisterCallReaction(
<span class="lineNum">     264 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     265 </span>            :   }
<span class="lineNum">     266 </span>            : 
<span class="lineNum">     267 </span>            :  private:
<span class="lineNum">     268 </span>            :   GTEST_DISALLOW_COPY_AND_ASSIGN_(NaggyMock);
<span class="lineNum">     269 </span>            : };
<span class="lineNum">     270 </span>            : 
<span class="lineNum">     271 </span>            : template &lt;class MockClass&gt;
<span class="lineNum">     272 </span>            : class StrictMock : public MockClass {
<span class="lineNum">     273 </span>            :  public:
<a name="274"><span class="lineNum">     274 </span>            :   // We don't factor out the constructor body to a common method, as</a>
<span class="lineNum">     275 </span>            :   // we have to avoid a possible clash with members of MockClass.
<span class="lineNum">     276 </span><span class="lineNoCov">          0 :   StrictMock() {</span>
<span class="lineNum">     277 </span><span class="lineNoCov">          0 :     ::testing::Mock::FailUninterestingCalls(</span>
<span class="lineNum">     278 </span><span class="lineNoCov">          0 :         internal::ImplicitCast_&lt;MockClass*&gt;(this));</span>
<span class="lineNum">     279 </span><span class="lineNoCov">          0 :   }</span>
<span class="lineNum">     280 </span>            : 
<span class="lineNum">     281 </span>            :   // C++ doesn't (yet) allow inheritance of constructors, so we have
<span class="lineNum">     282 </span>            :   // to define it for each arity.
<span class="lineNum">     283 </span>            :   template &lt;typename A1&gt;
<span class="lineNum">     284 </span>            :   explicit StrictMock(const A1&amp; a1) : MockClass(a1) {
<span class="lineNum">     285 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     286 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     287 </span>            :   }
<span class="lineNum">     288 </span>            :   template &lt;typename A1, typename A2&gt;
<span class="lineNum">     289 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2) : MockClass(a1, a2) {
<span class="lineNum">     290 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     291 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     292 </span>            :   }
<span class="lineNum">     293 </span>            : 
<span class="lineNum">     294 </span>            :   template &lt;typename A1, typename A2, typename A3&gt;
<span class="lineNum">     295 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3) : MockClass(a1, a2, a3) {
<span class="lineNum">     296 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     297 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     298 </span>            :   }
<span class="lineNum">     299 </span>            : 
<span class="lineNum">     300 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4&gt;
<span class="lineNum">     301 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3,
<span class="lineNum">     302 </span>            :       const A4&amp; a4) : MockClass(a1, a2, a3, a4) {
<span class="lineNum">     303 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     304 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     305 </span>            :   }
<span class="lineNum">     306 </span>            : 
<span class="lineNum">     307 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5&gt;
<span class="lineNum">     308 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     309 </span>            :       const A5&amp; a5) : MockClass(a1, a2, a3, a4, a5) {
<span class="lineNum">     310 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     311 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     312 </span>            :   }
<span class="lineNum">     313 </span>            : 
<span class="lineNum">     314 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     315 </span>            :       typename A6&gt;
<span class="lineNum">     316 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     317 </span>            :       const A5&amp; a5, const A6&amp; a6) : MockClass(a1, a2, a3, a4, a5, a6) {
<span class="lineNum">     318 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     319 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     320 </span>            :   }
<span class="lineNum">     321 </span>            : 
<span class="lineNum">     322 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     323 </span>            :       typename A6, typename A7&gt;
<span class="lineNum">     324 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     325 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7) : MockClass(a1, a2, a3, a4, a5,
<span class="lineNum">     326 </span>            :       a6, a7) {
<span class="lineNum">     327 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     328 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     329 </span>            :   }
<span class="lineNum">     330 </span>            : 
<span class="lineNum">     331 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     332 </span>            :       typename A6, typename A7, typename A8&gt;
<span class="lineNum">     333 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     334 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8) : MockClass(a1,
<span class="lineNum">     335 </span>            :       a2, a3, a4, a5, a6, a7, a8) {
<span class="lineNum">     336 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     337 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     338 </span>            :   }
<span class="lineNum">     339 </span>            : 
<span class="lineNum">     340 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     341 </span>            :       typename A6, typename A7, typename A8, typename A9&gt;
<span class="lineNum">     342 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     343 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8,
<span class="lineNum">     344 </span>            :       const A9&amp; a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
<span class="lineNum">     345 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     346 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<span class="lineNum">     347 </span>            :   }
<span class="lineNum">     348 </span>            : 
<span class="lineNum">     349 </span>            :   template &lt;typename A1, typename A2, typename A3, typename A4, typename A5,
<span class="lineNum">     350 </span>            :       typename A6, typename A7, typename A8, typename A9, typename A10&gt;
<span class="lineNum">     351 </span>            :   StrictMock(const A1&amp; a1, const A2&amp; a2, const A3&amp; a3, const A4&amp; a4,
<span class="lineNum">     352 </span>            :       const A5&amp; a5, const A6&amp; a6, const A7&amp; a7, const A8&amp; a8, const A9&amp; a9,
<span class="lineNum">     353 </span>            :       const A10&amp; a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
<span class="lineNum">     354 </span>            :     ::testing::Mock::FailUninterestingCalls(
<span class="lineNum">     355 </span>            :         internal::ImplicitCast_&lt;MockClass*&gt;(this));
<a name="356"><span class="lineNum">     356 </span>            :   }</a>
<span class="lineNum">     357 </span>            : 
<span class="lineNum">     358 </span><span class="lineNoCov">          0 :   virtual ~StrictMock() {</span>
<span class="lineNum">     359 </span><span class="lineNoCov">          0 :     ::testing::Mock::UnregisterCallReaction(</span>
<span class="lineNum">     360 </span><span class="lineNoCov">          0 :         internal::ImplicitCast_&lt;MockClass*&gt;(this));</span>
<span class="lineNum">     361 </span><span class="lineNoCov">          0 :   }</span>
<span class="lineNum">     362 </span>            : 
<span class="lineNum">     363 </span>            :  private:
<span class="lineNum">     364 </span>            :   GTEST_DISALLOW_COPY_AND_ASSIGN_(StrictMock);
<span class="lineNum">     365 </span>            : };
<span class="lineNum">     366 </span>            : 
<span class="lineNum">     367 </span>            : // The following specializations catch some (relatively more common)
<span class="lineNum">     368 </span>            : // user errors of nesting nice and strict mocks.  They do NOT catch
<span class="lineNum">     369 </span>            : // all possible errors.
<span class="lineNum">     370 </span>            : 
<span class="lineNum">     371 </span>            : // These specializations are declared but not defined, as NiceMock,
<span class="lineNum">     372 </span>            : // NaggyMock, and StrictMock cannot be nested.
<span class="lineNum">     373 </span>            : 
<span class="lineNum">     374 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     375 </span>            : class NiceMock&lt;NiceMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     376 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     377 </span>            : class NiceMock&lt;NaggyMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     378 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     379 </span>            : class NiceMock&lt;StrictMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     380 </span>            : 
<span class="lineNum">     381 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     382 </span>            : class NaggyMock&lt;NiceMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     383 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     384 </span>            : class NaggyMock&lt;NaggyMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     385 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     386 </span>            : class NaggyMock&lt;StrictMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     387 </span>            : 
<span class="lineNum">     388 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     389 </span>            : class StrictMock&lt;NiceMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     390 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     391 </span>            : class StrictMock&lt;NaggyMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     392 </span>            : template &lt;typename MockClass&gt;
<span class="lineNum">     393 </span>            : class StrictMock&lt;StrictMock&lt;MockClass&gt; &gt;;
<span class="lineNum">     394 </span>            : 
<span class="lineNum">     395 </span>            : }  // namespace testing
<span class="lineNum">     396 </span>            : 
<span class="lineNum">     397 </span>            : #endif  // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.11</a></td></tr>
  </table>
  <br>

</body>
</html>
